package com.bw.elastic.controller;

import com.bw.common.core.domain.Result;
import com.bw.elastic.common.domin.SkuEsModelList;
import com.bw.elastic.service.PmsSpuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.List;

@RequestMapping("pmsSpuInfo")
@RestController
public class PmsSpuInfoController {
    @Autowired
    private PmsSpuInfoService pmsSpuInfoService;

    /**
     * 上架
     * @param
     */
    @PostMapping("addEs")
    public Result addEs(@RequestBody List<SkuEsModelList> list)  {
         pmsSpuInfoService.addEs(list);
         return Result.success();
    }

}
